﻿Type=Activity
Version=3.15
@EndOfDesignText@
#Region  Activity Attributes 
	#FullScreen: False
	#IncludeTitle: True
#End Region

Sub Process_Globals
	'These global variables will be declared once when the application starts.
	'These variables can be accessed from all modules.

End Sub

Sub Globals
	'These global variables will be redeclared each time the activity is created.
	'These variables can only be accessed from this module.

	Dim lstMemu As ListView
End Sub

Sub Activity_Create(FirstTime As Boolean)
	Activity.LoadLayout("FormMain")
	Activity.Title = "YJXT"	
	
	InitLayOut

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub InitLayOut
	lstMemu.Clear
	lstMemu.AddTwoLines2("浏览病号","按床号顺序",0)
	
	'lstMemu.TwoLinesLayout.Label.TextSize = 25
	lstMemu.TwoLinesLayout.ItemHeight = 100
	lstMemu.FastScrollEnabled = True
	
	'高级菜单
	Activity.AddMenuItem("登陆科室","MenuItemAdv")
	
End Sub

Sub lstMemu_ItemClick (Position As Int, Value As Object)
	If Position = 0 Then
		If PublicVar.GV_Login_KSBM = "" Then
			ProgressDialogHide
		  ToastMessageShow ("还没选择登陆科室！", True)		
			Return
		End If
	
		StartActivity("BHList")
	End If
End Sub

Sub MenuItemAdv_Click
	If Sender = "登陆科室" Then
		StartActivity("LoginKS") 
	End If
	
End Sub